﻿using System;
using System.Collections.Generic;
using System.Text;
using WCFContracts;

namespace Pub.Lib
{


    public class SysUser : MarshalByRefObject
    {

        public static event FaxEventHandler FaxSendedEvent;

        #region

        public void SendFax(string strpc,string strfax)
        {
            if (FaxSendedEvent != null)
            {
                FaxSendedEvent(strpc, strfax);
            }
        }

        #endregion

        public override object InitializeLifetimeService()
        {
            return null;
        }
    }

    public delegate void FaxEventHandler(string strpc, string strfax);
    public interface IFaxBusiness
    {
        void SendFax(string fax);
    }
}
